package Server;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;

public class Server
{

    /**
     * @param args
     * @throws IOException
     */
    public static void main( String[] args ) throws IOException
    {
        MulticastSocket multicastSocket = new MulticastSocket( );
        String dirr = "230.0.0.100";
        InetAddress inetAddress = InetAddress.getByName( dirr );
        DatagramPacket datagramPacket;
        int i = 0;
        while( true )
        {
            i++;
            
            String arb = "hola" + i;
            datagramPacket = new DatagramPacket( arb.getBytes( ), arb.length( ), inetAddress, 7777 );
            multicastSocket.send( datagramPacket );

        }

    }

}
